package com.senthink.gl.business.forgetpw;

import com.senthink.gl.business.common.entity.BornableEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author yuanpeng@senthink.com
 * @data 2018-01-24 15:08
 */

@Entity
@Table(name = "gl_forget_password_code")
@Getter
@Setter
public class ForgetPassword extends BornableEntity<Long> {

    /**
     * 账户
     */
    @Column(nullable = false)
    private String account;

    /**
     * 验证码
     */
    @Column(nullable = false)
    private String code;

    /**
     * 生成验证码时间戳
     */
    @Column(nullable = false)
    private long expiredTime;

    /**
     * 是否能修改密码
     */
    @Column(nullable = false)
    private boolean reset;

}
